package com.zhhtech.zhh.ui.activity.main

import android.os.Bundle
import com.zhhtech.zhh.R
import com.zhhtech.zhh.databinding.ActivityFragmentBinding
import com.zhhtech.zhh.ui.base.BaseActivity
import com.zhhtech.zhh.ui.fragment.CaseProgressFragment
import com.zhhtech.zhh.ui.fragment.MyConsultationFragment
import com.zhhtech.zhh.ui.fragment.ShareFragment


class ShareActivity : BaseActivity<ActivityFragmentBinding>() {
    override fun initView() {
        supportFragmentManager.beginTransaction().replace(R.id.frameLayout, ShareFragment()).commitAllowingStateLoss()
    }
}

class CaseProgressActivity : BaseActivity<ActivityFragmentBinding>() {
    override fun initView() {
        supportFragmentManager.beginTransaction().replace(R.id.frameLayout, CaseProgressFragment()).commitAllowingStateLoss()
    }
}

class MyConsultationActivity : BaseActivity<ActivityFragmentBinding>() {
    override fun initView() {
        val fragment = MyConsultationFragment()
        fragment.arguments = Bundle().apply {
            intent?.extras?.let { putAll(it) }
        }
        supportFragmentManager.beginTransaction().replace(R.id.frameLayout, fragment).commitAllowingStateLoss()
    }
}